package com.baiyinet.biz;

import org.parceler.Parcel;

/**
 * @author J.Huang
 * @version 1.0
 * @since 16/12/10
 */
@Parcel
public class PageStatus {

    public static final String EXTRA_NAME = PageStatus.class.getName();

    public String code;
    public String url;
    public String menuName;
    public String menuUrl;
    public String toolbarBgColor;

    public boolean toolbarVisible;
    public boolean toolbarUpButtonEnabled;

    public PageStatus() {}

    public PageStatus(String url, boolean toolbarVisible) {
        this(url, toolbarVisible, false, "");
    }

    public PageStatus(String url, boolean toolbarVisible, String toolbarBgColor) {
        this(url, toolbarVisible, false, toolbarBgColor);
    }

    public PageStatus(String url, boolean toolbarVisible, boolean toolbarUpButtonEnabled, String toolbarBgColor) {
        this(url, toolbarVisible, toolbarUpButtonEnabled, "", "", toolbarBgColor);
    }

    public PageStatus(String url, boolean toolbarVisible, String menuName, String menuUrl, String toolbarBgColor) {
        this(url, toolbarVisible, false, menuName, menuUrl, toolbarBgColor);
    }

    public PageStatus(String url, boolean toolbarVisible, boolean toolbarUpButtonEnabled, String menuName, String menuUrl, String toolbarBgColor) {
        this("", url, toolbarVisible, toolbarUpButtonEnabled, menuName, menuUrl, toolbarBgColor);
    }

    public PageStatus(String code, String url, boolean toolbarVisible, boolean toolbarUpButtonEnabled, String menuName, String menuUrl, String toolbarBgColor) {
        this.code = code;
        this.url = url;
        this.toolbarVisible = toolbarVisible;
        this.toolbarUpButtonEnabled = toolbarUpButtonEnabled;
        this.menuName = menuName;
        this.menuUrl = menuUrl;
        this.toolbarBgColor = toolbarBgColor;
    }
}
